package com.usian.admin.feign;

import com.usian.model.article.pojo.ApArticle;
import com.usian.model.article.pojo.ApArticleConfig;
import com.usian.model.article.pojo.ApArticleContent;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleFeign {

    @PostMapping("/api/v1/article/saveArticle")
     ApArticle saveArticle(@RequestBody ApArticle apArticle);

    @PostMapping("/api/v1/article/apArticleConfig")
   ResponseResult saveArticleConfig(@RequestBody ApArticleConfig apArticleConfig);

    @PostMapping("/api/v1/article/apArticleContent")
     ResponseResult saveArticleContent(@RequestBody ApArticleContent apArticleContent);

}
